#pragma once
class BitmapHelper
{
public:
	static void SaveBitmapToStream(
		_In_ Microsoft::WRL::ComPtr<ID2D1Bitmap1> d2dBitmap,
		_In_ Microsoft::WRL::ComPtr<IWICImagingFactory2> wicFactory2,
		_In_ Microsoft::WRL::ComPtr<ID2D1DeviceContext> d2dContext,
		_In_ REFGUID wicFormat,
		_In_ IStream* stream
		);
	static void SaveD2DContextToFile(_In_ Microsoft::WRL::ComPtr<IWICImagingFactory2> m_wicFactory,_In_ Microsoft::WRL::ComPtr<ID2D1DeviceContext> d2dContext,_In_ Microsoft::WRL::ComPtr<ID2D1Bitmap1> targetBitmap,Graphics^ graphics);
};

